package pers.qianyu.domain.dto;

import com.alibaba.excel.annotation.*;
import com.alibaba.excel.annotation.format.*;
import lombok.*;
import pers.qianyu.converter.*;

import java.io.*;
import java.time.*;

/**
 * Excel 导出实体对象
 *
 * @author mizzle rain
 * @date 2020-10-14 17:53
 */
@Data
public class UserExportDTO implements Serializable {
    private static final long serialVersionUID = 4414669106904225190L;
    /**
     * 用户名
     */
    @ExcelProperty(value = "用户名", index = 0)
    private String username;
    /**
     * 邮箱
     */
    @ExcelProperty(value = "邮箱", index = 1)
    private String email;
    /**
     * 电话
     */
    @ExcelProperty(value = "手机号", index = 2)
    private String phone;
    /**
     * 年龄
     */
    @ExcelProperty(value = "年龄", index = 3)
    private Integer age;
    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间", index = 4, converter = LocalDateTimeStringConverter.class)
    @DateTimeFormat("yyyy年MM月dd日HH时mm分ss秒SSS毫秒")
    private LocalDateTime createTime;
    /**
     * 版本号
     */
    @ExcelProperty(value = "版本号", index = 5)
    private Long version;
}
